lst = [0, 2, 4, 6]
num=0
for i in range(len(lst)):
    s_lst=lst.copy()
    s_lst.pop(i)
    for j in range(len(s_lst)):
        t_lst = s_lst.copy()
        t_lst.pop(j)
        for k in range(len(t_lst)):
            print(f"{lst[i]}{s_lst[j]}{t_lst[k]}")
            num+=1
print(num)

